import { stringify } from 'qs';
import {request} from '../utils/request';
import { getConfig } from '../../config';
const config = getConfig();



// 历史能耗查询--------------------------------------------------------------------
export async function queryEnergyHistoryList(params) {
  return request('/energy/energyhistory/queryEnergyHisList', {
    method: 'POST',
    body: params,
  });
}


// 控制记录查询
export async function queryControlRecordList(params) {
  return request('/energy/energycontrol/queryControlList', {
    method: 'POST',
    body: params,
  });
}


// 防盗信息查询
export async function queryBurglarproofList(params) {
  return request('/energy/energyburglarproof/queryBurglarproofList', {
    method: 'POST',
    body: params,
  });
}






// 历史能耗查询导出
export async function actionEnergyHistoryExport(params) {
  return request(
    "/energy/energyinfo/export",
    {
      method: "POST",
      body: params
    },
    null,
    null,
    "download"
  );
}

// 控制记录导出
export async function actionControlRecordExport(params) {
  return request(
    "/energy/controlrecord/export",
    {
      method: "POST",
      body: params
    },
    null,
    null,
    "download"
  );
}


// 防盗信息导出
export async function actionBurglarproofExport(params) {
  return request(
    "/energy/burglarproof/export",
    {
      method: "POST",
      body: params
    },
    null,
    null,
    "download"
  );
}





